package com.ztgf.commodity.models.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.ztgf.commodity.models.bo.AttributesQueryBO;
import com.ztgf.commodity.models.dto.CommodityFilterAttributesDTO;
import com.ztgf.commodity.models.vo.CommodityFilterAttributesNewVO;
import com.ztgf.commodity.models.vo.CommodityFilterOneVO;
import com.ztgf.common.constant.Result;

import java.util.List;

/*
 * @author: chenyu.wang
 * @date: 2020-09-04
 * @description:筛选属性管理表服务
 */
public interface ICommodityFilterAttributesService extends IService<CommodityFilterAttributesDTO> {

    Page<CommodityFilterAttributesNewVO> queryPageList(AttributesQueryBO bo);

    CommodityFilterAttributesNewVO queryById(Long id);

    Result<List<String>> add(String object);

    Result<List<String>> updateById(String object);

    List<CommodityFilterAttributesDTO> queryList();

    List<CommodityFilterAttributesNewVO> queryByCategoryId(Long categoryId,String filterName);

    List<CommodityFilterOneVO> creatTree(String ids);

    List<CommodityFilterOneVO> getByParentId(Long id);

    Page<CommodityFilterAttributesNewVO> newQueryPageList(AttributesQueryBO bo);
}
